package cn.yunhe.model;

import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;

/**
 * Users entity. @author MyEclipse Persistence Tools
 */

public class Users implements java.io.Serializable {

	// Fields

	private BigDecimal id;
	private BigDecimal loginid;
	private String loginpwd;
	private String name;
	private int age;
	private Set<Orders> orderses = new HashSet<Orders>(0);

	// Constructors

	/** default constructor */
	public Users() {
	}

	/** minimal constructor */
	public Users(BigDecimal loginid, String loginpwd, String name, int age) {
		this.loginid = loginid;
		this.loginpwd = loginpwd;
		this.name = name;
		this.age = age;
	}

	/** full constructor */
	public Users(BigDecimal loginid, String loginpwd, String name,
			int age, Set<Orders> orderses) {
		this.loginid = loginid;
		this.loginpwd = loginpwd;
		this.name = name;
		this.age = age;
		this.orderses = orderses;
	}

	// Property accessors

	public BigDecimal getId() {
		return this.id;
	}

	public void setId(BigDecimal id) {
		this.id = id;
	}

	public BigDecimal getLoginid() {
		return this.loginid;
	}

	public void setLoginid(BigDecimal loginid) {
		this.loginid = loginid;
	}

	public String getLoginpwd() {
		return this.loginpwd;
	}

	public void setLoginpwd(String loginpwd) {
		this.loginpwd = loginpwd;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return this.age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public Set<Orders> getOrderses() {
		return this.orderses;
	}

	public void setOrderses(Set<Orders> orderses) {
		this.orderses = orderses;
	}

}